package com.project.application.framework.security;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 用户注册对象
 *
 * @author levnli
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class RegisterBody extends LoginBody {

    @NotBlank
    @Size(min = 5, max = 30, message = "密码长度5-30")
    private String repPassword;
}
